﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace AppUpdates.Core
{
    public class CoreBase
    {
        /// <summary>
        /// 目录
        /// </summary>
        public static string FilePath
        {
            get
            {
                var docPath = AppDomain.CurrentDomain.BaseDirectory;
                //var docPath = Environment.GetFolderPath(Environment.SpecialFolder.MyDocuments);
                var path = Path.Combine(docPath, "Updates");

                // 创建目录
                if (!Directory.Exists(path))
                {
                    Directory.CreateDirectory(path);
                }

                return path;
            }
        }



    }
}
